package com.jblv.frame.web.facade;

import com.jblv.frame.common.dto.PageResult;
import com.jblv.frame.user.api.dto.SysMenuDTO;
import com.jblv.frame.user.api.entity.SysMenu;
import com.jblv.frame.user.api.params.SysMenuListParams;
import com.jblv.frame.user.api.params.SysMenuParams;
import com.jblv.frame.user.api.vo.SysMenuListVO;

import java.util.List;

/**
 * @author happyonion.yangtao
 * @version 1.0
 * @title ISysMenuFacade
 * @projectName jblv-frame
 * @packageName com.jblv.web.facade
 * @description 菜单信息门面接口
 * @date Create at 2020/4/28 21:17
 * @since jdk1.8
 */
public interface ISysMenuFacade {

    /**
     * 获取单个菜单信息
     * @param id
     * @return
     */
    public SysMenu get(String id);

    /**
     * 获取菜单列表
     * @param params
     * @return
     */
    public PageResult<SysMenuDTO> getList(SysMenuListParams params);

    public PageResult<SysMenuDTO> getList();

    public String create(SysMenuParams sysMenuParams);

    public Boolean del(String id);

    public Boolean update(SysMenuParams sysMenuParams);

    public List<SysMenuListVO> getTreeList();
}
